﻿using static CommonModel.Model.DataTypeDll;

namespace CommonModel.Field
{
    //解析后的字段模型
    public abstract class FieldData : IFieldAttribute //实现
    {

		public string name; // 字段名称
		public DataType type; // 字段类型
		public string value; // 字段值

		//
		public string getValue()
		{
			return value;
		}

		public void setValue(string value)
		{
			this.value = value;
		}

		public string getName()
		{
			return name;
		}

		public void setName(string name)
		{
			this.name = name;
		}

		public abstract DataType getType();

		public abstract void setType(DataType type);

		public abstract string getCode();
		public abstract string getMemo();
		public abstract string getIsSave();
		public abstract string getId();

		public abstract void setCode(string code);
        public abstract int getIndex();
        public abstract void setIndex(int index);
		public abstract int getLayer();
		public abstract void setLayer(int layer);
		public abstract int getSize();
        public abstract void setSize(int size);
        public abstract string getDeviceType();
        public abstract void setDeviceType(string deviceType);
        public abstract bool isAlarm();
        public abstract void setAlarm(bool isAlarm);
        public abstract string getAlarmValue();
        public abstract void setAlarmValue(string alarmValue);
        public abstract string getAlarmName();
        public abstract void setAlarmName(string alarmName);
        public abstract string getLoop();
        public abstract void setLoop(string loop);
        public abstract void setMemo(string memo);
        public abstract void setIsSave(string isSave);
        public abstract void setId(string id);
    }
}
